home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / netmail / yep13.zip / YX-11.ZIP / DATEFILE.DOC next >
Text File  |  1996-01-28  |  1KB  |  24 lines

  1. DATEFILE outputs a string with the current date and/or time.
  2.  
  3. This may seem a rather useless thing to do, and perhaps it is! I originally
  4. made the program when I was running Windows'95. The OS was crashing on me so
  5. ridiculously often on me I decided to write the program and insert it into
  6. my autoexec.bat, as a joke, to write a text file reporting the last time
  7. W95 crashed. In the windows '95 autoexec i would include this line:
  8.  
  9. DATEFILE "Windoze '95 last crashed at @t on @d." >boottime
  10.  
  11. The above commandline would replace the @t with the time, and the @d with
  12. the date, and redirect the output to a file named "boottime".
  13.  
  14. Now using OS/2 I don't get near as many crashes, and if anyone wanted such a
  15. utility for other purposes it would take about one minute to write one in
  16. REXX to do the exact same thing.
  17.  
  18. However, in the chance someone might find some use for this OS/2 executable,
  19. here it is-- free for use.
  20.  
  21. You may include a /N switch on the commandline to prevent the program from
  22. outputing a "newline" sequence at the end of output, if desired.
  23.  
  24.